// mockProdServer.js
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer'
// 逐一导入您的mock.ts文件
// 如果使用vite.mock.config.ts，只需直接导入文件
// 可以使用 import.meta.glob功能来进行全部导入
import userMock from '../mock/user'
import role from '../mock/role'
import remoteSearch from '../mock/remote-search'
import article from '../mock/article'

const mock = createProdMockServer([
  ...userMock,
  ...role,
  ...remoteSearch,
  ...article
])

console.log('mock -----> ', mock)

export const setupProdMockServer = () => mock
